package com.wuchao.abstractClasses;

/**
 * 作者：吴超
 * 邮箱：wuchao_19931120@163.com
 * 时间：2021-10-10
 * 描述：
 */

public class Student extends Person{

    private String major;
    public Student(String name,String major){
        super(name);
        this.major = major;
    }

    @Override
    public String getDesc() {
        return "a student majoring in " + major;
    }
}
